{% extends "base.html" %}
{% block title %}氧化钙|注册账号{% endblock %}
{% block head %}<link rel="stylesheet" href="static/css/input.css"> {% endblock %}
{% block body %}
<form action = "/register" method = post>
   {{ form.csrf_token }}<!--csrf令牌-->
   <div class="ipt_frame">
      <div class="ipt_frame_inside">
         <h4>注册账号</h4>

         {{ form.username }}<!--可直接替换-->

         {% for error in form.username.errors %}
            <p class="warning">{{ error }}</p>
         {% endfor %}


         {{ form.email }}<!--可直接替换-->

         {% for error in form.email.errors %}
            <p class="warning">{{ error }}</p>
         {% endfor %}

         {{ form.password }}
         {% for error in form.password.errors %}
            <p class="warning">{{ error }}</p>
         {% endfor %}

         {% for message in get_flashed_messages() %}
            <p class="warning">{{ message }}</p>
         {% endfor %}

         {{ form.submit }}<!--可直接替换-->
      </div>
   </div>
 </form>
{% endblock %}